package cn.tj212.xiaoyin.core.course.dao;

import cn.tj212.xiaoyin.common.page.TailPage;
import cn.tj212.xiaoyin.core.course.domain.CourseSection;

import java.util.List;

public interface CourseSectionDao {
    CourseSection getById(Long sectionId);

    List<CourseSection> queryAll();

    Integer getMaxSort(Long courseId);

    Integer getTotalItemsCount(CourseSection queryEntity);

    List<CourseSection> queryPage(CourseSection queryEntity, TailPage<CourseSection> page);

    void createSelectivity(CourseSection entity);

    void createList(List<CourseSection> entityList);

    void update(CourseSection entity);

    void delete(CourseSection entity);

    void updateSelectivity(CourseSection entity);

    void deleteLogic(CourseSection entity);

    CourseSection getSortSectionMax(CourseSection curCourseSection);

    CourseSection getSortSectionMin(CourseSection curCourseSection);
}
